package com.cx.base.presenter;


import android.content.Intent;

import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;

import com.cx.base.view.IView;


public interface IPresenter {

    interface Presenter<T extends IView> {
        void onStart();

        void onDestroy();

        void attachView(T t);

        void onActivityResult(int requestCode, int resultCode, Intent data);
    }


    interface ListPresenter<T extends IView.ListView>
            extends Presenter<T>, SwipeRefreshLayout.OnRefreshListener {

        void onLoadMoreRequested();

    }

}
